package com.ruoyi.community.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 通知公告对象 base_notice
 * 
 * @author ruoyi
 * @date 2021-12-16
 */
public class BaseNotice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 公告id */
    private String noticeId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 板块id */
    @Excel(name = "板块id")
    private String sectionId;

    /** 置顶状态 */
    @Excel(name = "置顶状态")
    private Integer topStatus;

    /** 缩略图url */
    @Excel(name = "缩略图url")
    private String picUrl;

    /** 公告创建人 */
    @Excel(name = "公告创建人")
    private String author;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date syncTime;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Integer viewNumber;

    /** 社区id */
    @Excel(name = "社区id")
    private Integer communityId;

    public void setNoticeId(String noticeId) 
    {
        this.noticeId = noticeId;
    }

    public String getNoticeId() 
    {
        return noticeId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setSectionId(String sectionId) 
    {
        this.sectionId = sectionId;
    }

    public String getSectionId() 
    {
        return sectionId;
    }
    public void setTopStatus(Integer topStatus) 
    {
        this.topStatus = topStatus;
    }

    public Integer getTopStatus() 
    {
        return topStatus;
    }
    public void setPicUrl(String picUrl) 
    {
        this.picUrl = picUrl;
    }

    public String getPicUrl() 
    {
        return picUrl;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setSyncTime(Date syncTime) 
    {
        this.syncTime = syncTime;
    }

    public Date getSyncTime() 
    {
        return syncTime;
    }
    public void setViewNumber(Integer viewNumber) 
    {
        this.viewNumber = viewNumber;
    }

    public Integer getViewNumber() 
    {
        return viewNumber;
    }
    public void setCommunityId(Integer communityId) 
    {
        this.communityId = communityId;
    }

    public Integer getCommunityId() 
    {
        return communityId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("noticeId", getNoticeId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("sectionId", getSectionId())
            .append("topStatus", getTopStatus())
            .append("picUrl", getPicUrl())
            .append("author", getAuthor())
            .append("syncTime", getSyncTime())
            .append("viewNumber", getViewNumber())
            .append("communityId", getCommunityId())
            .toString();
    }
}
